// 获取应用实例
const app = getApp()

Page({
    data: {
        content: "",
        note: ""
    },
    onPullDownRefresh() {
        wx.stopPullDownRefresh(); //停止刷新操作
    },
    onLoad() {
        const http = require('../../utils/http.js') //引入http.js文件
        let data = {}
        var that = this
        http.get("https://open.iciba.com/dsapi/", function (res) {
            data = res.data
            that.setData({
                content: data.content,
                note: data.note
            })
            console.log("返回结果=" + JSON.stringify(res.data));
        }, function (e) {
            console.log("返回error结果=" + JSON.stringify(e));
        });
    }
})